//
//  ActivityHeaderCell.m
//  SXH
//
//  Created by Ryan on 15/12/9.
//  Copyright © 2015年 lyss. All rights reserved.
//

#import "ActivityHeaderCell.h"
#import "UIImageView+AFNetworking.h"
@implementation ActivityHeaderCell

- (void)awakeFromNib {
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.imgHeight.constant = 180/320.0*SCREEN_WIDTH;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(ActivityHeadInfoModel *)model
{
    _model = model;
    [self.titleImageView setImageWithURL:[NSURL URLWithString:IMAGE_STRING(model.album)]];
    self.titleLabel.text = model.title;
    self.headContent.text = model.headContent;
    self.headContent.userInteractionEnabled = YES;
    if (model.participant != nil) {
        self.numberLabel.text = [NSString stringWithFormat:@"参与%zi人",model.participant.intValue];
    }

}
@end
